FROM openjdk:8
ARG SERVICE_PACKAGE
MAINTAINER zhuhongliang 'castile.github.io'
ENV APP_HOME=/opt/castile/app

ADD opt/castile/app /opt/castile/app/
EXPOSE 9090
WORKDIR /opt/castile/app
#CMD  /bin/bash ${APP_HOME}/config/docker-start.sh
ENTRYPOINT ["java", "-Xbootclasspath/a:/opt/castile/app/config", "-Djava.ext.dirs=/opt/castile/app/lib:$JAVA_HOME/jre/lib/ext","-jar","/opt/castile/app/castile-seckill-0.0.1-SNAPSHOT-boot.jar"]